﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RCZC.aspx.cs" Inherits="HSYCWeb.web.DOCS.RCZC" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>高级人才注册</title>
    <script type="text/javascript" src="extJS/ext-base.js"></script>
    <script type="text/javascript" src="extJS/ext-all.js"></script>
    <script type="text/javascript" src="extJS/ext-lang-zh_CN.js"></script>
    <link type="text/css" rel="Stylesheet" href="extJS/resources/css/ext-all.css" />
    
    <script>

        var frm;
        Ext.onReady(function () {

            Ext.QuickTips.init();
            Ext.form.Field.prototype.msgTarget = 'side';

            var bd = Ext.getBody();
            //bd.createChild({tag: 'h2', html: '高级人才注册'});


            var simple = new Ext.FormPanel({
                id: 'frm',
                labelWidth: 75,
                frame: true,
                title: '高级人才注册',
                bodyStyle: 'padding:5px 5px 0',
                width: 350,
                defaults: { width: 230 },
                defaultType: 'textfield',
                standardSubmit: true,


                items: [{
                    fieldLabel: '用户名',
                    name: 'userName',
                    allowBlank: false
                },
            {
                fieldLabel: '密码',
                name: 'password'
            },
            {
                fieldLabel: '确认密码',
                name: 'relpassword'
            },
           {
               fieldLabel: '邮箱',
               name: 'email',
               vtype: 'email'
           }
        ],

                buttons:
         [
         {
             text: '提交',
             handler:submit
         },
        {
            text: '重置'
        }]
            });

            simple.render(document.body);
            frm = Ext.getCmp("frm");
        });
        function submit() {

            if (!frm.getForm().isValid()) return;
          
                   frm.getForm().submit({
                       waitMsg: '正在提交数据',
                       waitTitle: '提示',
                       url: 'AJAX/ADDRC.ashx',
                       method: 'GET',
                       success: function (form, action) {
                          Ext.Msg.alert('提示', '保存成功');
                       
                       },
                       failure: function (form, action) {
                           Ext.Msg.alert('提示', '原因如下：' + action.result.errors.info);
                       }
                   });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
